package com.springboot.ww.platform.tt.api;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author songwanyu
 * @date 2021/12/29 10:33
 * @description
 */
@NoArgsConstructor
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class OrderDetail2 implements Serializable {
	@JsonProperty("tracking_number")
	private String trackingNumber;
	@JsonProperty("line_items")
	private List<PackageListDTO> orderLineList;


	@NoArgsConstructor
	@Data
	public static class PackageListDTO {
		@JsonProperty("package_id")
		private String packageId;
		@JsonProperty("product_id")
		private String productId;
		@JsonProperty("tracking_number")
		private String trackingNumber;

	}
}
